#include <iostream>

using namespace std;

//const int N = 2e4 + 10;
//int q[N];
int n;
bool st[110];

int main()
{
	cin >> n;
	
	for (int i = 0; i < n; i ++ )
	{
		int v;
		cin >> v;
		
		if (st[v]) continue;
		
		st[v] = true;
		cout << v << ' ';
	}
	
	return 0;S
} 
